import http from "../utils/http";

// 用户登录
export function user_login(data){
    return http.post("/users/login",data)
}


// 验证手机号是否已注册
export function check_mobile(mobile){
    return http.get(`/users/mobile/${mobile}`)
}

// 用户注册
export function user_register(data){
    return http.post("/users/register",data)
}

// 获取验证码
export function get_sms_code(mobile){
    return http.get(`/users/sms/${mobile}`)
}